package com.polelink.testcenter.service;

import com.polelink.testcenter.dto.EcuConfigDto;
import com.polelink.testcenter.dto.EcuInfoDto;
import com.polelink.testcenter.dto.ProjectItemDto;
import com.polelink.testcenter.dto.VehicleInfoDto;
import com.polelink.testcenter.exception.ExcelParseException;
import org.apache.commons.math3.util.Pair;
import org.apache.poi.ss.usermodel.Sheet;

import java.util.List;

// ExcelParserService.java
public interface ExcelParserService {
    List<EcuInfoDto> parseEcuInfo(Sheet sheet) throws ExcelParseException;
    Pair<VehicleInfoDto, List<EcuConfigDto>> parseEcuConfig(List<EcuInfoDto> ecuInfos, Sheet sheet) throws ExcelParseException;
    List<ProjectItemDto> parsePepsSheet(Sheet sheet) throws ExcelParseException;
    String generateIniContent(List<EcuInfoDto> ecuInfos,
                              Pair<VehicleInfoDto, List<EcuConfigDto>> ecuConfigs,
                            List<ProjectItemDto> pepsItems);
}

